<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>权限管理222</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- modal页固定调用 -->
		<%@ include file="/html/custom/header.jsp"%>
		<%@ include file="/html/custom/modalHeader.jsp"%>

		<style>
</style>
		<script type="text/javascript">
			$(function(){
				$.validator.setDefaults({
					submitHandler: function(form) {
						 //alert("submitted!"); 
						form.submit();
					},
					highlight: function(input) {
						$(input).addClass("ui-state-highlight");
					},
					unhighlight: function(input) {
						$(input).removeClass("ui-state-highlight");
					}
			});
		
	
				$("#userForm").validate({
		rules: {
			'user.password': {
				required: true,
				minlength: 5
			},
			confirm_password: {
				required: true,
				minlength: 5,
				equalTo: "#password"
			}
		}
	});
				
			});
		</script>
	</head>

	<body>
		<div id="content">
			<form id="userForm" method="post" action="/swss/user/user_update.action"
				target="_top">
				<fieldset>
					<p>
						<label for="passowrd">
							密码
						</label>
						<input type="hidden" name="user.id" value="<s:property value="user.id" />" /><input id="password"  type="password" name="user.password"
							class="ui-widget-content ui-corner-all txt"  />
					</p>
					<p>
						<label for="confirm_password">
							密码确认
						</label>
						<input type="password" name="confirm_password"
							class="ui-widget-content ui-corner-all txt"  />
					</p>
				</fieldset>
			</form>
		</div>

		<!-- modal也固定页尾 （按钮） -->
		<div class="btnset clearfix">
			<a id="btnClose" href="#">取消</a>
			<a id="btnReset" href="#">重置</a>
			<a id="btnSave" href="<s:property value="url" />">保存</a>
		</div>


	</body>
</html>
